package com.inspur.cloud.entity.dataspace.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel(value = "分页返回对象")
@Data
public class PageResult<T> extends OpResult {
    @ApiModelProperty(value = "总页数", example = "1")
    private Integer pageTotal;
    @ApiModelProperty(value = "总条数", example = "1")
    private Long count;
    @ApiModelProperty(value = "当前页内容")
    private List<T> pageList;

    public PageResult(int code, String msg) {
        super(code, msg);
    }

    public PageResult() {
        super();
    }
}
